package com.gzhryc.shared_device.oem.h5.agent.dto.api.v1;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.gzhryc.common.api.SecurityResponse;

public class MsgListResponse extends SecurityResponse<MsgListResponse.Body> {

	private static final long serialVersionUID = 1L;

	public MsgListResponse() {
		this.body = new Body();
	}

	public MsgListResponse(Integer code) {
		super(code);
		this.body = new Body();
	}

	public static class Body implements Serializable {

		private static final long serialVersionUID = 1L;

		private Integer page;
		private List<MsgItem> msgList;
		
		public Body() {
			this.msgList = new ArrayList<MsgItem>();
		}

		public Integer getPage() {
			return page;
		}

		public void setPage(Integer page) {
			this.page = page;
		}

		public List<MsgItem> getMsgList() {
			return msgList;
		}

		public void setMsgList(List<MsgItem> msgList) {
			this.msgList = msgList;
		}
		
	}
	
	public static class MsgItem implements Serializable {
		
		private static final long serialVersionUID = 1L;
		
		private Long id;
		private Integer type;
		private String title;
		private String desc;
		private String url;
		
		public Long getId() {
			return id;
		}
		public void setId(Long id) {
			this.id = id;
		}
		public Integer getType() {
			return type;
		}
		public void setType(Integer type) {
			this.type = type;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getDesc() {
			return desc;
		}
		public void setDesc(String desc) {
			this.desc = desc;
		}
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
	}
}
